deploy: Swap current symlink only after updating the kernel
authorColin Walters <walters@verbum.org>
Fri, 26 Apr 2013 22:15:51 +0000 (18:15 -0400)
committerColin Walters <walters@verbum.org>
Fri, 26 Apr 2013 22:15:51 +0000 (18:15 -0400)
commit8c694622b1db25e04316b61df9f427a7a225884c
tree17e338e26e9bf017169efe1149c1ffab18f7086b
parent52a336970929e56d54a16b4fd2beaf19ee960151
deploy: Swap current symlink only after updating the kernel

While this still isn't fully atomic (that depends on the bootloader),
this better ensures that the deployed kernel is booted with the
intended tree.  For example, if we get ENOSPC when writing out the
kernel, we won't have swapped the symlink.
src/ostree/ot-admin-builtin-deploy.c